/*
** my_strstr.c for my_strstr in /home/nadali_t//local/piscine/Jour_06/ex_04
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Oct  8 10:29:48 2012 thomas nadalie
** Last update Mon Nov 19 16:43:36 2012 thomas nadalie
*/

#include	"my.h"

char		*my_strstr(char *str, char *to_find)
{
  int		i;
  int		j;

  i = 0;
  j = 0;
  while (to_find[j] != '\0')
    {
      i = 0;
      while (str[i] != '\0')
        {
          if (to_find[j] == str[i])
            return (&str[i]);
          i = i + 1;
        }
      j = j + 1;
    }
  return (0);
}
